'use strict';

// exports.User = {
//   id: { type: 'integer', required: true },
//   name: { type: 'string' },
//   gender: { type: 'string', enum: ['1', '2'] },
// };

module.exports = {
  registerPhonePassword: {
    phone: { type: 'string', required: false, example: '13311111111', format: /^1[34578]\d{9}$/, description: '电话' },
    password: { type: 'string', required: true, example: '123456', description: '密码' },
  },
  loginPhonePassword: {
    phone: { type: 'string', required: false, example: '13311111111', format: /^1[34578]\d{9}$/, description: '电话' },
    password: { type: 'string', required: true, example: '123456', description: '密码' },
    captcha: { type: 'string', required: true, example: '', description: '验证码' },
  },
  userInfo: {
    userId: { type: 'string', required: false, example: '100', description: '用户id' },
  },
};
